
<?php 
include_once '../../conn/all.php';
 session_start();
		$user=$_SESSION["unc"];
$class=$_GET['class'];
$res=sql("s", "face", "*","where user='".$user."'");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.php?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>留言系统设置</title>
</head>
<body>
<form method="POST" name="myform" action="../control.php?oper=leave_inc&class=<?=$class; ?>" target="_self">
		<input name="action" type="hidden" value="modify">
		<input name="class1" type="hidden" value="14">
<table cellpadding="2" cellspacing="1" class="table">
          <tr> 
            <td colspan="3" class="title">留言系统设置</td>
          </tr>
		   <tr> 
            <td  class="text">防刷新时间</td>
            <td class="input"><input name="leave_time" type="text" class="text" value="<?=$res["leave_time"]; ?>">秒，同一IP2次提交的最小间隔时间</td>
          </tr> 
		  <tr> 
            <td  class="text">敏感字符过滤</td>
            <td class="input"><textarea name="leave_filter" class="textarea gen" cols="50" rows="3" ><?=$res["leave_filter"]; ?></textarea>多个字符请用"|"隔开</td>
          </tr>
		  <tr> 
            <td  class="text">显示方式</td>
            <td class="input"><input name="leave_show" type="checkbox" class="checkbox" value="1" <?php if($res["leave_show"]==1){ ?>checked='checked'<?php } ?>>客户留言后需要在后台回复审核才显示</td>
          </tr>
		 <tr>
            <td class="text"></td>
	      <td class="submit"><input type="submit" name="Submit" value="保存" class="submit" />
		  <input type="reset" name="Submit" value="重置" class="reset" />
		  </td>
          </tr>
         <tr>
		  <td class="footer" colspan="2"> </td>
	  </tr>
</table>
        </form>
</body>
</html>
